
//解析query参数字符串转化成对象
function getQueryParams(queryStr) {
    // queryStr = this.props.history.location.search;
    queryStr = queryStr.substring(1);
    const queryList = queryStr.split("&")
    let obj = {}
    queryList.forEach(item=>{
        let arr = item.split("=");
        obj[arr[0]] = decodeURI(arr[1])
    })
    return obj;
}
